package com.babble.comment.vo;

import com.babble.comment.entity.Comment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 评论视图实体
 *
 * @author wm
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "评论视图模型", description = "评论表视图模型")
public class CommentVO extends Comment {
	private static final long serialVersionUID = -858943576430535546L;

	@ApiModelProperty(value = "个人头像")
	private String avatar;

	@ApiModelProperty(value = "昵称")
	private String nickName;

	@ApiModelProperty(value = "被评论人人头像")
	private String toAvatar;

	@ApiModelProperty(value = "被评论人昵称")
	private String toNickName;

	private List<CommentVO> children;
}
